import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'User',
    //   component: () => import('../views/index/User.vue')
    // },
    // {
    //   path: '/Area',
    //   name: 'Area',
    //   component: () => import('../views/index/Area.vue')
    // },
    {
      path: '/',
      name: 'Device',
      component: () => import('../views/index/Device.vue'),
    },
    {
      path: '/Topology',
      name: 'Topology',
      component: () => import('../views/index/Topology.vue')
    },
    {
      path: '/HistoricalData/:deviceID',
      name: 'HistoricalData',
      component: () => import('../views/deviceInfo/HistoricalData.vue')
    }
  ]
})

export default router
